<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/home.css" />
<title>移动办公自动化系统</title>
	<style type="text/css">
	 td{
	      font-size:12px;
	      text-align: center;
	   }
	 a{
	 color: black;
	 }  
	</style>
</head>

<body>
<div class="article toolbar">
	<div class="title ue-clear">
    	<h2>常用工具</h2>
       
    </div>
    <div class="content">
    	<ul class="toollist ue-clear">
    		<li>
            	<a href="javascript:;" class="img"><img src="images/icon01.png" /></a>
                <p><a href="${pageContext.request.contextPath}/luhong/email/sendEmail/sendEmail.jsp">发送邮件</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon02.png" /></a>
                <p><a href="${pageContext.request.contextPath}/lwg/publicInformation/workPlanApply.jsp">计划申请</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon03.png" /></a>
                <p><a href="${pageContext.request.contextPath}/lyk/Personoffice/Message/updatepwd.jsp">密码修改</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon04.png" /></a>
                <p><a href="${pageContext.request.contextPath}/lxp/accessory/calendar.jsp">日历</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon05.png" /></a>
                <p><a href="${pageContext.request.contextPath}/ForumManager.action?method=querySection">发帖</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon06.png" /></a>
                <p><a href="${pageContext.request.contextPath}/lxp/accessory/weather.jsp">天气预报</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon07.png" /></a>
                <p><a href="${pageContext.request.contextPath}/lxp/accessory/calculate.jsp">计算器</a></p>
            </li>
        
          
    	</ul>
        
    </div>
</div>
<div class="article half notice">
	<div class="wrap-l">
        <div class="title ue-clear">
            <h2>通知公告</h2>
            <a href="${pageContext.request.contextPath}/lwg/publicInformation/notice.jsp" class="more">更多</a>
        </div>
        <div class="content">
        	<table width="100%" align="center" cellspacing="0" cellpadding="0">
					<tr>
						 <td width="60%">公告主题</td>
				       	  <td width="30%">公示时间</td>
				       	  <td width="10%">发帖人</td>
						
					</tr>
					<c:forEach items="${sessionScope.announcedata}" var="ann" varStatus="c">
						<tr style="line-height:22px;">
							<td style="text-align: left;">
							 <a href="${pageContext.request.contextPath}/lwg/publicInformation/notice.jsp">
								${ann.annTitle}</a>
							</td>
							<td>
								${ann.annTime}
							</td>
							<td>
								${ann.annAuthor}
							</td>
						</tr>		
					</c:forEach>
				</table>
        </div>
    </div>
</div>
<div class="article half matter">
	<div class="wrap-r">
        <div class="title ue-clear">
            <h2 class="title-list">
                <ul class="ue-clear">
                    <li class="current"><a href="javascript:;">工作计划</a></li>
                </ul>
            </h2>
            <a href="${pageContext.request.contextPath}/lwg/publicInformation/workPlan.jsp" class="more">更多</a>
        </div>
        <div class="content">
        	<div class="matter-content current ue-clear">
            	<div class="today">
                	<p class="year">${sessionScope.ymdata}</p>
                    <p class="date">${sessionScope.ddata}</p>
                </div>
               
               <table width="60%" align="center" cellspacing="0" cellpadding="0">
					<tr>
						 <td>部门名称</td>
				       	 <td>工作时间段</td>  	
					</tr>
					<c:forEach items="${sessionScope.plandata}" var="plan" varStatus="c">
						<tr style="line-height:22px;">
							<td>
							 <a href="${pageContext.request.contextPath}/lwg/publicInformation/workPlan.jsp">
								${plan.deptName}</a>
							</td>
							<td>
								${plan.planTime}
							</td>
							
						</tr>		
					</c:forEach>
				</table>
				
            </div>
          
        </div>
    </div>
</div>
<div class="article half duty">
	<div class="wrap-l">
        <div class="title ue-clear">
            <h2>通讯录</h2>
            <a href="${pageContext.request.contextPath}/lwg/publicInformation/contact.jsp" class="more">更多</a>
        </div>
        <div class="content">
        	<table width="100%" align="center" cellspacing="0" cellpadding="0">
					<tr>
						 <td width="15">姓名</td>
				       	  <td width="30%">入职时间</td>
				       	  <td width="25%">电话</td>
				       	  <td width="15%">部门</td>
				       	  <td width="15%">职位</td>
						
					</tr>
					<c:forEach items="${sessionScope.msgdata}" var="msg" varStatus="c">
						<tr style="line-height:22px;">
							<td>
							 <a href="${pageContext.request.contextPath}/lwg/publicInformation/contact.jsp">
								${msg.userName}</a>
							</td>
							<td>
								${msg.enterDate}
							</td>
							<td>
								${msg.userPhone}
							</td>
							<td>
								${msg.deptName}
							</td>
							<td>
								${msg.empWork}
							</td>
						</tr>		
					</c:forEach>
				</table>
        </div>
    </div>
</div>
<div class="article half email">
	<div class="wrap-r">
        <div class="title ue-clear">
            <h2>未读邮件</h2>
            <a href="${pageContext.request.contextPath}/receiveEmail.action?method=queryReceiveEmail" class="more">更多</a>
        </div>
        <div class="content">
        	<table width="100%" align="center" cellspacing="0" cellpadding="0">
            	<thead>
                	<tr style="text-align: center;">
                    	<td width="10%"></td>
                        <td width="10%">发件人</td>
                        <td >主题</td>
                        <td width="30%">时间</td>
                    </tr>
                </thead>
                <tbody>
                <c:forEach items="${sessionScope.maildata}" var="mail" varStatus="c">
                    <tr>
                    	<td class="icon"><div class="td-wrap"></div></td>
                        <td class="sender"><div class="td-wrap">${mail.addresserName}</div></td>
                        <td class="subject"><div class="td-wrap">
                        <a href="${pageContext.request.contextPath}/receiveEmail.action?method=queryReceiveEmail">
                        	${mail.emailTopic}</a></div></td>
                        <td><div class="td-wrap">${mail.emailDate}</div></td>
                    </tr>
				</c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
$(".title-list ul").on("click","li",function(){
	var aIndex = $(this).index();
	$(this).addClass("current").siblings().removeClass("current");
	$(".matter-content").removeClass("current").eq(aIndex).addClass("current");
});

$(".duty").find("tbody").find("tr:even").css("backgroundColor","#eff6fa");
</script>
</html>
